<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
    <select id="selId">
		<option value="">请选择</option>
		<option value="2011">2011</option>
		<option value="2012">2012</option>
		<option value="2013">2013</option>
		<option value="2014">2014</option>
	</select>

	<input type="button" value="新的年份" onclick="setNewYear()"/>
</body>

<script type="text/javascript">
	function setNewYear(){
		var selDom = document.getElementById("selId");
		var nodes = selDom.childNodes;
		for(var i=0;i<nodes.length;i++){
			if(nodes[i].tagName && nodes[i].tagName=="OPTION"){
				if(nodes[i].value && nodes[i].value!=""){
					selDom.removeChild(nodes[i]);
				}
			}
		}
		/*
    	//删除
    	var arr = ['2008','2009','2010'];
    	var selDom = document.getElementById("selId");
    	var opl = selDom.options.length;
		for(var i=opl-1;i>=0;i--){
    		var val = selDom.options[i].value;
    		if(val && val!=""){
    			selDom.options.remove(i);
    		}
    	}
    	
    	//添加
    	for(var j=0;j<arr.length;j++){
    		selDom.options.add(new Option(arr[j],arr[j]));
    	}
		*/
	
	}
</script>





</html>